(function (aopc) {
    aopc.addExpandPage(838, function (get) {
        return {
            expandInit() {
                this.confirm_container_view = this.getProperty('confirm_container_view');
                this.messageProperty = this.getProperty('message');
                this.ok_buttonProperty = this.getProperty('ok_button');
            },
            setPropertyValue(p, v) {
                p.value = v;
                p.setValue && p.setValue(v);
            },
            show(message, callback, okText) {
                this.setPropertyValue(this.messageProperty, message);
                this.setPropertyValue(this.ok_buttonProperty, okText || '确定');
                this.confirm_container_view.setIsVisible(true);

                this.confirmOk = () => {
                    callback && callback();
                    this.confirm_container_view.setIsVisible(false);
                };
            }
        }
    });
})(window.aopc);